package com.xzz.experiment.XuanKe;

public class Course {
     String courseName;//课程名

     int courseId;//课程编号

     String site;//上课地点

    String time;//上课时间

     String teacher;//授课教师

     float credit;//学分

     Student[] students;

//构造函数

    public Course(int courseId, String courseName, float credit, String teacher,String site,String time) {


        this.courseId = courseId;

        this.courseName = courseName;

        this.credit = credit;

        this.teacher = teacher;

        this.site = site;

        this.time = time;
    }
    public void show(){
        System.out.println(courseId+"   "+courseName+"      "+site+"  "+time+"   "+teacher+"   "+credit);
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public float getCredit() {
        return credit;
    }

    public void setCredit(float credit) {
        this.credit = credit;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public Student[] getStudents() {
        return students;
    }

    public void setStudents(Student[] students) {
        this.students = students;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
